package com.baige.service.message.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 事物消息
 * </p>
 *
 * @author wulg
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("transaction_message")
public class TransactionMessage extends Model<TransactionMessage> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 消息内容
     */
    @TableField("message_body")
    private String messageBody;
    /**
     * 消息类型
     */
    @TableField("message_data_type")
    private String messageDataType;
    /**
     * 消费队列
     */
    @TableField("consumer_queue")
    private String consumerQueue;
    /**
     * 消息发送次数
     */
    @TableField("message_send_times")
    private Integer messageSendTimes;
    /**
     * 是否已经死亡
     */
    @TableField("already_dead")
    private String alreadyDead;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 扩展字段
     */
    @TableField("extension_field")
    private String extensionField;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
